package com.zero.spring.boot.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * Package: com.zero.spring.boot.web.controller
 * Description： TODO
 * Author: HaloWang
 * Date: Created in 2018/5/29 15:53
 * Company: 公司
 * Copyright: Copyright (c) 2018
 * Version: 0.0.1
 * Modified By: HaloWang
 */
@RestController
public class HelloController {

    @RequestMapping("/hello/hi")
    public String hello(String name) {
        return "Hello" + name;
    }

    @RequestMapping("/getUser")
    public User getUser() {
        User user = new User();
        return user;
    }

}
